//
// Created by Administrator on 2024/7/16.
//

#ifndef EMPTY_BODY_H
#define EMPTY_BODY_H
#include "../jtt809_body.h"

namespace protocol {
    class EmptyBody : public JTT809Body { public:
    public:
        EmptyBody() = default;

        EmptyBody(const JTT809LinkType &link_type, const unsigned short msg_id)
            : JTT809Body(link_type, msg_id) {
        }

        void serialize(MessagePackWriter &writer) override {}

        void deserialize(MessagePackReader &reader) override {}

    protected:
        [[nodiscard]] size_t _size_() const override { return 0; }
    };
}
#endif //EMPTY_BODY_H
